package com.light.roller;

import org.anddev.andengine.engine.Engine;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.FileIO;
import com.smile.menu.MenuButton;
import com.smile.menu.MenuForm;

public class BigMenuWorld3 extends BigMenu{
	
		public Engine initialize(Vector2 cameraCenter)
		{
			lowestStageNum = 21;
			heightestStageNum = 33;
			
			String openPicText = "world3OpenSpot";
			this.backGroundPicString = "BigMenuWorld3";
			
			Engine engine = super.initialize(cameraCenter);		
			
			stages = new Class<?>[]
                                 	{
					Roller_S16.class,
             		Roller_S17.class,
             		Roller_S26.class,
             		Roller_S20.class,
             		Roller_S22.class,
             		Roller_S23.class,
             		Roller_S24.class,
             		Roller_S27.class,
             		Roller_S21.class,
             		Credits.class,
             	//	Roller_S28.class,
             	//	Roller_S29.class,
             	//	Roller_S30.class,
                                 	};

				picText = new String[]
           	                   {
           						  "logo_S16",
           						  "logo_S17",
           						  "logo_S26",
           						  "logo_S20",
           						  "logo_S22",
           						  "logo_S23",
           						  "logo_S24",
           						  "logo_S27",
           						  "logo_S21",
           						  "smallRock",
           			//			 "smallRock",
           			//			 "smallRock",
          			//			 "smallRock",
           	                   };
			stageString= getStageNameArray();

			
			spotPositionList = new Vector2[]{
					new Vector2(55,55),
					new Vector2(82,150),
					new Vector2(111,255),
					new Vector2(300,218),
					new Vector2(465,237),
					new Vector2(664,202),
					new Vector2(493,110),
					new Vector2(569,62),
					new Vector2(818,130),
					new Vector2(884,238),
			//		new Vector2(940,50),
			//		new Vector2(940,120),
			//		new Vector2(940,190)

			};	
			menuButtons = new MenuButton[]
			             		                    {
			             								new MenuButton(this, (int)spotPositionList[0].x,(int)spotPositionList[0].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[1].x,(int)spotPositionList[1].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[2].x,(int)spotPositionList[2].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[3].x,(int)spotPositionList[3].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[4].x,(int)spotPositionList[4].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[5].x,(int)spotPositionList[5].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[6].x,(int)spotPositionList[6].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[7].x,(int)spotPositionList[7].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[8].x,(int)spotPositionList[8].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[9].x,(int)spotPositionList[9].y,this.menuManager),
			     //        								new MenuButton(this, (int)spotPositionList[10].x,(int)spotPositionList[10].y,this.menuManager),
			    //         								new MenuButton(this, (int)spotPositionList[11].x,(int)spotPositionList[11].y,this.menuManager),
			     //        								new MenuButton(this, (int)spotPositionList[12].x,(int)spotPositionList[12].y,this.menuManager),
			             							};
			for(int i=0;i<this.menuButtons.length;i++)
			{
				menuButtons[i].setOpenPicText(openPicText);
				
			}

			
	        return engine;
		}
		
		static public String[] getStageNameArray()
		{
			return new String[]
        	                   {
					  "The \n      Great Jump",
					  " Fragile",
					  "Swing, \n        Swing",
					  "A Brave \n              Heart",
					  "Hard \n        Jumps",
					  "The \n      Cannon",
					  "Double \n          Strike",
					  "Walking \n" +
					  "        On Thin Ice",
					  "Wrecking \n               Ball",
					  "The \n      Core",
				//	  "The \n  Prototype",
				//	  "The \n  Prototype",
				//	  "The \n  Prototype",
                  };
		}

}
